package com.ysu.yybk.enums;

import lombok.Getter;

@Getter
public enum  ResultEnum {
    INSERT_FAIL(10100, "插入失败"),
    PARAM_ERROR(10101, "参数错误"),
    UPDATE_ERROR(10102,"更新失败"),

    STUDENT_NOT_EXIST(11100,"学生不存在"),
    STUDENT_HAS_EXIST(11101, "学生已在课程内"),
    STUDENT_HAS_NOT_EXIST(11102, "学生不在课程内"),

    DISCUSS_NOT_EXIST(12100, "讨论不存在"),
    DISCUSS_ITEM_NOT_EXIST(12101, "该组还未提交答案"),
    DISCUSS_ADD_SCORE_ERROR(12102, "评分失败")
    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
